package com.wholesale.utils;

import android.view.View;
import android.widget.TextView;

import com.wholesale.R;

public class ShippingMethodCache {
	private View baseView;
	private TextView shippingName;
	private TextView shippingDesc;
	private TextView insure;
	private TextView cost;

	public ShippingMethodCache(View baseView) {
		this.baseView = baseView;
	}

	public TextView getShippingName() {
		if (shippingName == null) {
			shippingName = (TextView) baseView.findViewById(R.id.title_lable);
		}
		return shippingName;
	}

	public TextView getShippingDesc() {
		if (shippingDesc == null) {
			shippingDesc = (TextView) baseView.findViewById(R.id.comments_text);
		}
		return shippingDesc;
	}

	public TextView getInsure() {
		if (insure == null) {
			insure = (TextView) baseView.findViewById(R.id.insurance_text);
		}
		return insure;
	}

	public TextView getCost() {
		if (cost == null) {
			cost = (TextView) baseView.findViewById(R.id.cost_text);
		}
		return cost;
	}
}
